package com.qf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsAdmin;
import com.qf.vo.CatVo;

import java.net.UnknownHostException;
import java.util.List;

public interface AdminService {
    DtsAdmin findDtsAdminByUsername(String username);

    IPage<DtsAdmin> findListByQuery(String username, Integer page, Integer limit, String sort, String order);

    DtsAdmin create(DtsAdmin dtsAdmin);


    void updatePassword(Integer id,String newPassword);

    void updateAdmin(DtsAdmin dtsAdmin);


    void deleteAdmin(Integer id, Boolean deleted);

    List<CatVo> findAll();
}
